s = input()
print(s[-4:], "-", s[0:2], "-", s[3:5], sep = '')
